-
Notifications
You must be signed in to change notification settings - Fork 185
pySCG bugfix for CWE-191 as per #835 #838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Helge Wehder <[email protected]>
|
I am reviewing this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some typo's noticed, as well as some warnings with Pylint. Left some comments with the warnings, not sure if they are relevant in this case or not.
| try: | ||
| result = get_datetime(currtime, hours) | ||
| print(f"{hours} OK, datetime='{result}'") | ||
| except Exception as exception: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am getting this error in Pylint, saying that the exception is too general:
Catching too general exception ExceptionPylintW0718:broad-exception-caught
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attack section is not expected to be clean
| try: | ||
| result = get_datetime(currtime, hours) | ||
| print(f"{hours} OK, datetime='{result}'") | ||
| except Exception as exception: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again with the general exception warning, not sure if it is relevant a I believe you want to catch all exceptions:
Catching too general exception ExceptionPylintW0718:broad-exception-caught
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the attack section does not require to be 'compliant' so won't change this.
Co-authored-by: andrew-costello <[email protected]> Signed-off-by: myteron <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, +1.
Trying to address issues reported in #835 , the excessive attack section might be to much but covers all boundaries I discovered.